import Cookies from 'js-cookie'

const TokenKey = 'sik_template_token'
const timer = 'sik_template_timer'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 获取时间戳
export function getTimer() {
  return Cookies.get(timer)
}

// 设置时间戳
export function setTimer() {
  return Cookies.set(timer, Date.now())
}
